package cn.sytton.taffe.web.flw.entity;

import cn.sytton.taffe.framework.base.entity.BaseUpdatedEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工作流表单表 对象
 * </p>
 *
 * @author rock
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("flw_form_def")
@Schema(description = "工作流表单")
public class FormDefEntity extends BaseUpdatedEntity {

    @Schema(description = "表单ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String formId;

    @Schema(description = "表单名称")
    private String formName;

    @Schema(description = "表单编号")
    private String formCode;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "表单结构ID")
    private String structureId;

    @Schema(description = "流程定义key")
    private String processDefKey;

    @Schema(description = "流程定义id")
    private String processDefId;

    @Schema(description = "状态（发布1/未发布0）")
    private Integer status;

    //-----以下是关联属性-----
    @TableField(exist = false)
    private String version;  //表单版本

    @TableField(exist = false)
    private String formJson;  //表单结构
}
